<?php

namespace Bliss\TestBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use JMS\SecurityExtraBundle\Annotation\Secure;


class DefaultController extends Controller
{
    public function indexAction($name)
    {
        return $this->render('BlissTestBundle:Default:index.html.twig', array('name' => $name));
    }
    
    
    public function secureAction()
    {
        //$param = $this->get('request')->query->get('param');
        
        $param = "d<style>e'd'e";
        
        //$this->get('session')->getFlashBag()->add('toto', 'message de toto');
        
        return $this->render('BlissTestBundle:Default:secure.html.twig', array('param' => $param));
    }
    
    
    public function loginAction()
    {
        return $this->render('BlissTestBundle:Default:login.html.twig');
    }
}
